<%-- 
    Document   : formModifPasswd
    Created on : 24 juin 2013, 16:50:10
    Author     : ali
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                
        <title>Modifier mot de passe</title>
            <link rel="stylesheet" href="Accueil.css" />
            <link rel="SHORTCUT ICON" href="./edt.jpg" />
            
            
        <script language="javascript" src="md5.js"></script>
        <script language="javascript">

    function doChallengeResponse() {
        
        str = document.getElementById("passold").value;
    document.getElementById("passold").value = MD5(str);
    
        str = document.getElementById("pass").value;
    document.getElementById("pass").value = MD5(str);
    
    str = document.getElementById("passcf").value;
    document.getElementById("passcf").value = MD5(str);
    
    

      }

    </script>
    </head>


    <body>    
         
    <section>
    
         
    <!--<form method='POST' action='PromoNivGradForm.do'> -->
   <%
     String form ="";
        
        form += "<form method='POST' action='modifPasswdAct.do' target='section'>";
        form += "<div class='commentaire'>";
        form += "<fieldset>";
        
        
        form +="<legend> Modification de mot de passe : </legend>";
        
        form +="<input type='hidden' name='key' value='"+session.getAttribute("key")+"' />";
        
        form +="<input type='hidden' name='interv' value='"+session.getAttribute("idinterv")+"' />";
        
        
        form +="Ancien mot de passe : <input id='passold' type='password' name='passold' value=''/><br/><br/>";
        
        
        form +="Nouveau mot de passe : <input type='password' name='pass' id='pass' value=''/><br/><br/>";
        form +="Confirmer mot de passe : <input type='password' id='passcf' name='passcf' value=''/><br/><br/>";
              
        
           
        form +="<input type='submit' onClick='doChallengeResponse();' value='valider'/><br/>";
        out.println(form);
            
    %>
    
   
    
    
    <html:errors/> 
    
    </fieldset>
    
        
    </div>

    </form>
         
    </section>
    </body>
</html>